export class Rendering{

    constructor(component){
        this.renderHTML();
        this.onEvents();
    }

    renderHTML(){
        console.log("information");
        document.querySelector(".content").innerHTML = `<button class="test">写文章</button>`
    }

    onEvents(){
        document.querySelector(".test").onclick = ()=>{
            console.log("information success");
        }
    }
}

